package com.mf.all.entity.req.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @Author: lmf
 * @Create: 2025/4/2 23:03
 * @module 登录请求
 */
@Data
public class ReqLogin {
    @Schema(description = "用户名" )
    @NotBlank(message = "用户名不能为空" )
    @Size(min = 4, message = "用户名长度不能小于4" )
    private String username;

    @Schema(description = "密码" )
    @NotBlank(message = "密码不能为空" )
    @Size(min = 6, max = 20, message = "密码长度在6-20位之间" )
    private String password;
}
